<template>
  <div>
    <van-form @submit="onSubmit" :show-error-message="error">
<!--      页面头部-->
      <header-top></header-top>
<!--      公司名称 && 所属行业-->
      <content-input></content-input>
<!--      开始时间 && 结束时间-->
      <date></date>
<!--      公司名称 && 工作描述-->
      <dec></dec>
      <div style="margin: 16px;">
        <van-button round block type="info" native-type="submit" color="#59C262">
          下一步
        </van-button>
      </div>
    </van-form>
  </div>
</template>

<script>
import HeaderTop from './components/headerTop'
import ContentInput from './components/content'
import Date from './components/date'
import Dec from './components/dec'

export default {
  name: 'index',
  components: {
    Dec,
    Date,
    ContentInput,
    HeaderTop
  },
  data () {
    return {
      error: false
    }
  },
  methods: {
    onSubmit (value) {
      console.log(value)
      this.$router.push('/education')
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
